export const BTN_LIST = [
  { label: '事故分析', type: 'accident', left: 470, bottom: 25 },
  { label: '路段分析', type: 'construction', left: 600, bottom: 40 },
  { label: '警情分析', type: 'alarm', left: 730, bottom: 55 },
  { label: '维度分析', type: 'statisticHeatMap', left: 860, bottom: 65 },
  { label: '亡人事故分析', type: 'deathAccident', left: 990, bottom: 85 },
  { label: '监控查询', type: 'monitor', left: 1120, bottom: 65 },
  { label: '多项分析', type: 'multipleAnalysis', left: 1250, bottom: 55 },
  { label: 'AI智能', type: 'intelligence', left: 1380, bottom: 40 },
  { label: '权限管理', type: 'settings', left: 1510, bottom: 25 },
] as const;

export const TOOL_LIST = {
  accident: [
    { label: "事故", type: "accident" },
    { label: "热力", type: "accidentHeatMap" },
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
  construction: [
    { label: "施工", type: "construction" },
    { label: "热力", type: "constructionHeatMap" },
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
  alarm: [
    { label: "警情", type: "alarm" },
    { label: "热力", type: "alarmHeatMap" },
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
  vioSurveil: [
    { label: "违法", type: "vioSurveil" },
    { label: "热力", type: "vioSurveilHeatMap" },
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
  monitor: [
    { label: "监控", type: "monitor" },
    { label: "区域", type: "monitorHeatMap" },
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
  deathAccident: [
    { label: "亡人事故", type: "deathAccident" },
    { label: "热力", type: "deathAccidentHeatMap" },
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
  statisticHeatMap: [
    { label: "绘制", type: "draw" },
    { label: "清除", type: "deleteDraw" },
  ],
} as const;

export const ACCIDENT_LIST = [{
  label: "今日事故数",
  prop: "totalCount",
  type: "today",
  sglx: ""
}, {
  label: "一般程序事故数",
  prop: "generalCount",
  type: "today",
  sglx: "1"
}, {
  label: "简易事故数",
  prop: "simpleCount",
  type: "today",
  sglx: "2"
}, {
  label: "昨日事故数",
  prop: "totalCount",
  type: "yesterday",
  sglx: ""
}, {
  label: "一般程序事故数",
  prop: "generalCount",
  type: "yesterday",
  sglx: "1"
}, {
  label: "昨日简易事故数",
  prop: "simpleCount",
  type: "yesterday",
  sglx: "2"
}]

interface PieChartItem {
  label: string;
  type: string;
  isChecked: boolean; // 声明isChecked属性
}

export const PIE_CHART_ITEM: PieChartItem[] = [
  { label: "事故热力图时间", type: "Time", isChecked: false },
  { label: "事故热力图事故形态", type: "Type", isChecked: false },
  { label: "事故热力图天气", type: "Weather", isChecked: false },
  { label: "事故热力图路面情况", type: "LmzkAndDlwlgl", isChecked: false },
  { label: "事故热力图类型", type: "Sglx", isChecked: false },
  { label: "事故热力图成因", type: "Reason", isChecked: false },
  // { label: "事故热力图年龄", type: "Age", isChecked: false },
]

export const TYPE_TITLE = {
  accident: "事故信息",
  construction: "施工信息",
  alarm: "警情信息",
  vioSurveil: "违法信息",
}

export const TYPE_DETAIL_TITLE = {
  accident: "事故详情",
  construction: "施工详情",
  alarm: "警情详情",
  vioSurveil: "警情详情",
}


export const ROAM_LINE = [
  [
      113.125693,
      27.559953,
      8.3
  ],
  [
      113.126984,
      27.559101,
      8
  ],
  [
      113.127074,
      27.558966,
      7.9
  ],
  [
      113.127042,
      27.558781,
      7.9
  ],
  [
      113.126801,
      27.558441,
      7.7
  ],
  [
      113.126858,
      27.558142,
      7.5
  ],
  [
      113.127372,
      27.557782,
      8
  ]
]

export const PLOTTING = [{
  label:"减速带",
  icon:"fixedRoute/jsd.png"
},{
  label:"凸面镜",
  icon:"fixedRoute/tmj.png"
},{
  label:"限速标识",
  icon:"fixedRoute/xs.png"
},{
  label:"弯道标识",
  icon:"fixedRoute/wdbs.png"
},{
  label:"岔道标识",
  icon:"fixedRoute/cdbs.png"
},{
  label:"斑马线",
  icon:"fixedRoute/bmx.png"
},{
  label:"路灯",
  icon:"fixedRoute/ld.png"
},{
  label:"抓拍摄像头",
  icon:"fixedRoute/zpsxt.png"
}]
